import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';

// 查询
export const listReturnOrders = params => axios.get(`${SERVER.CYXDMS_RETAIL}/salesReturn/listReturnOrders`, { params });

// 新增客户订单
export const addOrders = params => axios.post(`${SERVER.CYXDMS_RETAIL}/ordermanage/customerOrders`, params);

// 修改客户订单
export const modifyOrders = params => axios.put(`${SERVER.CYXDMS_RETAIL}/ordermanage/customerOrders`, params);
//原单查询
export const queryFinishSalesOrder = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/salesOrders/queryFinishSalesOrder`, { params });
//保存/
export const insertReturnSales = params => axios.post(`${SERVER.CYXDMS_RETAIL}/salesReturn/insertReturnSales`, params);
//新增查询
export const getReturnOrdersById = salesId => axios.get(`${SERVER.CYXDMS_RETAIL}/salesReturn/getReturnOrdersById?salesId=${salesId}`);
//删除
export const cancelReturnSales = salesNoId => axios.put(`${SERVER.CYXDMS_RETAIL}/salesReturn/cancelReturnSales/${salesNoId}`);
//提交
export const submitReturnSales = params => axios.put(`${SERVER.CYXDMS_RETAIL}/salesReturn/submitReturnSales`,params);




